package com.dev.controller;

import com.dev.service.ICustomService;
import com.dev.service.impl.CustomServiceImp;

import java.util.HashMap;
import java.util.Map;

/**
 * @author : fujc-dev@qq.com
 * @motto : talk is cheap, show me the code. salute the future!
 */

public class IndexController {

    public Map<String,Object> get(){
        Map<String,Object> containers = new HashMap<>();
        ICustomService customService = new CustomServiceImp();

        long llTmp = 99L;
//        int _current_int= new Long(llTmp / 1000 / 3600 / 24).intValue();
        int _current_int1 = (int) (llTmp / 1000 / 3600 / 24);
//        containers.put("_current_int",_current_int);
        containers.put("_current_int1",_current_int1);

        if(customService.get().equals("zhangsan")){
           containers.put("code",1);
       }
        if("zhangsan".equals(customService.get())){
            containers.put("code",1);
        }
        return containers;
    }
}
